home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Video
/
World of Video.iso
/
gfxprograms
/
3dprograms
/
rayshade-4.0
/
fixes
/
fix024
/
libray
/
libcommon
/
vecmath.c.diff
< prev
next >
Wrap
Text File
|
1995-02-13
|
422b
|
24 lines
*** vecmath.c Mon Oct 11 15:00:58 1993
--- vecmath.c.frac Mon Oct 11 14:47:18 1993
***************
*** 75,80 ****
--- 75,92 ----
}
/*
+ * Compute (euclidian) distance between two points [PhB]
+ */
+ Float
+ VecDist(a, b)
+ Vector *a, *b;
+ {
+ Vector temp;
+ VecSub(*a, *b, &temp);
+ return VecNorm(temp);
+ }
+
+ /*
* Compute cross-product of a and b, place result in o.
*/
void